"use strict";

exports.__esModule = true;
exports.initUnitbasic = initUnitbasic;
exports.rpx = rpx;
exports.select = select;
var systemInfo = {};
var basicSize = 375;
var basicAspect = 1;

function initUnitbasic() {
  systemInfo = wx.getSystemInfoSync();
  basicAspect = systemInfo.windowWidth / basicSize;
}

function rpx(v) {
  return v * basicAspect;
}

function select(map) {
  return map[systemInfo.windowWidth];
}